/*
 * ShapeHandle.java
 *
 * Created on 19 maart 2008, 14:11
 *
 * @author wijnand.schepens@hogent.be
 */

package diagram.handles;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.Shape;

/**
 * triangular handle pointing to the right
 *
 *  .
 *  . .
 *  .   .
 *  .     .
 *  .   .
 *  . .
 *  .
 */
public class ShapeHandle
{
//	protected Shape shape;
//	
//	public ShapeHandle()
//	{
//		//shape.
//		
//	}
//	
//	public void paint(Graphics2D g)
//	{
////		Color oldColor = g.getColor();
////		
////		g.setColor(Color.WHITE);
////		g.fill(this.getRectangle());
////		g.setColor(Color.BLACK);
////		g.draw(this.getRectangle());
////		if (this.isHighlighted())
////			g.draw(this.getHighlightRectangle());
////		
////		g.setColor(oldColor);
//	}
//
//	public boolean contains(int x, int y)
//	{
//		return this.getRectangle().contains(x, y);
//	}
//
//	public boolean isContainedIn(Rectangle rect)
//	{
//		return rect.contains(this.getRectangle());
//	}
//
//
//	protected Rectangle getRectangle()
//	{
//		return new Rectangle(getLocation().getX() - size/2, getLocation().getY() - size/2, size, size);
//	}
//	
//	protected Rectangle getHighlightRectangle()
//	{
//		return new Rectangle(getLocation().getX() - (size/2+2), getLocation().getY() - (size/2+2), size+4, size+4);
//	}	
}
